import { Injectable } from '@angular/core';
import { HttpService } from '../../../core/http.service';
import { SERVERS_NAME } from '../../../config/config';
import {CommHttpService} from '../../../core/comm.http.service';

@Injectable()
export class DeptSupervisionService extends CommHttpService {

  protected preUrl = `${SERVERS_NAME.EVALUTE_SERVER}base/deptSupervise/`;
  protected preSysUrl = `${SERVERS_NAME.SECURITY_SERVER}sys/`;

  constructor(
    protected http: HttpService
  ) {
    super(http);
  }

  /**
   * 获取部门名称
   */
  getDeptListApi() {
    return this.http.get('', `${this.preSysUrl}dept/list`);
  }

  /**
   * 获取教师列表
   */
  getTeacherListApi(data) {
    return this.http.post(data, `${this.preSysUrl}teacher/page`);
  }

  /**
   * 获取督导课程列表
   */
  getCourseListApi(data) {
    return this.http.post(data, `${SERVERS_NAME.EVALUTE_SERVER}base/course/findAll`);
  }

}
